"""
商品管理
URL: http://127.0.0.1/index.php/Admin/Index/index
"""

from PO.base.base import Base
from PO.page import houtai


class PageHtLogin(Base):

    #登录封装
    def page_ht_login(self, username, password, code):
        # TODO 输入用户名
        self.base_input_no_clear(houtai.login_username,username)
        # TODO 输入密码
        self.base_input_no_clear(houtai.login_pwd,password)
        # TODO 输入验证码
        self.base_input_no_clear(houtai.login_verify_code,code)
        # TODO 点击登录按钮
        self.base_click(houtai.login_btn)

    # 后台输入用户名
    def page_ht_input_username(self, username):
        self.base_input(houtai.login_username, username)

    # 后台输入密码
    def page_ht_input_password(self, pwd):
        self.base_input(houtai.login_pwd, pwd)

    # 后台输入验证
    def page_ht_input_verify_code(self, code):
        self.base_input(houtai.login_verify_code, code)

    # 后台点击登录按钮
    def page_ht_click_login_btn(self):
        self.base_click(houtai.login_btn)